<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">


<ui:composition template="/template.xhtml">
	<ui:define name="tituloPagina">
		<p:outputLabel value="#{msgs['paginas.visualizar.compromissos']}" />
	</ui:define>
	<ui:define name="botoes">
		
<p:commandButton value="#{msgs['botoes.voltar']}"
			action="#{compromissoBean.cancelarRevisaoDoCompromisso()}"
			ajax="false" />

		
	</ui:define>
	<ui:define name="principal">
		
<p:dataTable value="#{compromissoBean.compromisso}" var="_compromisso">
			<p:column headerText="#{msgs['campos.titulo.reuniao']}">
				<p:outputLabel style="width: 128px;"
					value="#{_compromisso.reuniao.dataReuniao}" disabled="true">
					<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="GMT-03:00" />
				</p:outputLabel>
			</p:column>
			<p:column headerText="#{msgs['campos.titulo.numero.compromisso']}">
				<p:outputLabel value="#{_compromisso.numeroCompromisso}"
					disabled="true" style="width: 63px;" />

			</p:column>
			<p:column headerText="#{msgs['campos.titulo.prazo.conclusao']}">
				<p:outputLabel disabled="true" style="width: 63px;"
					value="#{_compromisso.metaConclusao}">
					<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="GMT-03:00" />

				</p:outputLabel>

			</p:column>

			<p:column headerText="#{msgs['campos.titulo.solicitante']}">

				<p:outputLabel style="width: 63px;"
					value="#{_compromisso.solicitante.nome}" disabled="true" />
			</p:column>


			<p:column headerText="#{msgs['campos.titulo.responsavel']}">

				<p:outputLabel style="width: 63px;"
					value="#{_compromisso.pessoa.nome}" disabled="true" />


			</p:column>

			<p:column headerText="#{msgs['campos.titulo.projeto']}">

				<p:outputLabel style="width: 63px;"
					value="#{_compromisso.projeto.nome}" disabled="true" />


			</p:column>

			<p:column headerText="#{msgs['campos.titulo.descricao']}">

				<p:outputLabel rows="5" style="width: 63px;"
					value="#{_compromisso.descricao}" disabled="true" />
			</p:column>

			<p:column headerText="#{msgs['campos.titulo.observacoes']}">

				<p:outputLabel rows="4" style="width: 63px;"
					value="#{compromissoBean.compromissoConluido.observacao}"
					disabled="true" />

			</p:column>

			<p:column headerText="Data Conclusão">
				<p:outputLabel rows="4" style="width: 63px;"
					value="#{compromissoBean.compromissoConluido.dataConclusao}"
					disabled="true">
					<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="GMT-03:00" />


				</p:outputLabel>

			</p:column>


		</p:dataTable>
		<p:commandButton id="downloadLink" value="Download Arquivo" ajax="false" rendered="#{compromissoBean.bootaoDown}" style="margin-left: 903px; margin-top: 10px;">
<p:fileDownload value="#{compromissoBean.fileDown}"> </p:fileDownload>
</p:commandButton>
		<br></br>
		<br></br>
		<p:separator id="customSeparator" style="width:1022px;height:3px" />
		<br></br>
		<p:dataTable value="#{compromissoBean.listaHistorico}"
			var="_historico">

			<p:column headerText="Log">
				<p:outputLabel value="#{_historico.mudanca}" />

			</p:column>

			<p:column headerText="Data">


				<p:column headerText="Data Conclusão">
					<p:outputLabel rows="4" style="width: 63px;"
						value="#{_historico.dataMudanca}">
						<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="GMT-03:00" />


					</p:outputLabel>

				</p:column>




			</p:column>



		</p:dataTable>
	</ui:define>
	
</ui:composition>
</html>